package com.itheima.service.mongo;

import com.itheima.domain.mongo.Comment;
import com.itheima.domain.mongo.Video;
import com.itheima.domain.vo.PageBeanVo;

// 视频服务
public interface VideoService {

    // 分页查询视频列表
    PageBeanVo findByPage(int pageNum, int pageSize, Long userId);

    // 保存视频
     void  save(Video video);

    PageBeanVo findUserVideoByPage(int pageNum,int pageSize,Long userId);

   int delete(Long userId,Integer commentType,String videoUserId);
    //保存视频评论
    int  saveVideo(Comment comment);
    //展示视频评论
    PageBeanVo findCommentVideoByPage(int pageNum, int pageSize, String videouserId);

}